package com.big.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 用户日志表(TUserLog)实体类
 *
 * @author makejava
 * @since 2022-04-18 13:18:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user_log")
public class UserLog implements Serializable {

    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 内容
     */
    private String info;
    /**
     * IP
     */
    private String ip;
    /**
     * 创建时间
     */
    private Date ctime;

    public UserLog(Integer uid, Integer type, String info, String ip, Date ctime) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.ip = ip;
        this.ctime = ctime;
    }
}

